run terminal commands using python